package pers.amos.eshop.one.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import pers.amos.eshop.one.service.fallback.EshopProductPriceServiceFallback;

/**
 * @author amos wong
 * @create 2020-12-18 3:35 下午
 */
@FeignClient(value = "eshop-price-service", fallback = EshopProductPriceServiceFallback.class)
public interface EshopProductPriceService {

    @GetMapping(value = "/product-price/findByProductId")
    String findByProductId(@RequestParam("productId") Long productId);

}
